import request from '@/utils/request'

// 获取楼栋-单元-电梯监视卡片数据
export function getMonitorCards() {
  return request({
    url: '/project/location-monitor/monitor-cards',
    method: 'get'
  })
}

// 获取电梯温度详情
export function getElevatorDetail(lcCode) {
  return request({
    url: `/project/location-monitor/elevator-detail/${lcCode}`,
    method: 'get'
  })
}

// 获取电梯温度趋势数据
export function getTemperatureTrend(params) {
  return request({
    url: '/project/location-monitor/temperature-trend',
    method: 'get',
    params: params
  })
}

// 刷新监视数据
export function refreshMonitorData() {
  return request({
    url: '/project/location-monitor/refresh',
    method: 'post'
  })
}
